package io.renren.modules.wyzsphone.dao;


import io.renren.modules.wyzsphone.entity.FactoryUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface FactoryUserDao {
    void saveFactoryUser(Map<String, Object> params);

    void saveFactoryLoginInfo(Map<String, Object> params);

    void changeFactoryUserPass(Map<String, Object> params);

    List<FactoryUser> getMyFactoryList(String username);

    FactoryUser getMyFactoryById(@Param("username") String  username,@Param("factoryId") String factoryId);

    void deleteFactoryUser(@Param("username") String  username,@Param("factoryId") String factoryId);

    FactoryUser getUserByFactoryId(Map<String, Object> params);
}
